package com.eorchis.module.classdept.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.classdept.domain.ClassDept;
import com.eorchis.module.signupdept.domain.SignupDept;
import com.eorchis.module.trainingclass.domain.TrainingClass;


/**
 * Title: ClassDeptValidCommond<br>
 * Description: 班级部门关系表ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2014-12-30
 * @version $Revision$
 */
public class ClassDeptValidCommond implements ICommond {
	
	private ClassDept classDept;
	private TrainingClass trainingClass;
	private SignupDept signupDept;
	private String [] addDepIds;
	private String searchClassId;
	private String [] searchClassDepIds;//班级部门关系主键
	private String searchDepId;
	private String searchClassType;
	private String searchYear;
	public ClassDeptValidCommond(){
		classDept = new ClassDept();
		trainingClass=new TrainingClass();
		signupDept=new SignupDept();
	}
	
	public ClassDeptValidCommond(ClassDept classDept){
		this.classDept = classDept;
		trainingClass = classDept.getTrainingClass();
		signupDept=classDept.getSignupDept();
	}

	public Serializable getEntityID() {
		return classDept.getClassDeptId();
	}

	public IBaseEntity toEntity() {
		return classDept;
	}

	/**
	 * 获取主键
	 */	
	public String getClassDeptId() {
		return classDept.getClassDeptId();
	}
	/**
	 * 设置主键
	 */		
	public void setClassDeptId(String classDeptId) {
		classDept.setClassDeptId(classDeptId);
	}
	/**
	 * 获取ID
	 */	
	public String getClassId() {
		return trainingClass.getClassId();
	}
	/**
	 * 设置ID
	 */		
	public void setClassId(String classId) {
		trainingClass.setClassId(classId);
	}

	public String getSignupDeptId() {
		return signupDept.getDepid();
	}

	public void setSignupDeptId(String signupDeptId) {
		signupDept.setDepid(signupDeptId);
	}

	public String[] getAddDepIds() {
		return addDepIds;
	}

	public void setAddDepIds(String[] addDepIds) {
		this.addDepIds = addDepIds;
	}

	public String getSearchClassId() {
		return searchClassId;
	}

	public void setSearchClassId(String searchClassId) {
		this.searchClassId = searchClassId;
	}

	public String[] getSearchClassDepIds() {
		return searchClassDepIds;
	}

	public void setSearchClassDepIds(String[] searchClassDepIds) {
		this.searchClassDepIds = searchClassDepIds;
	}

	public String getSearchDepId() {
		return searchDepId;
	}

	public void setSearchDepId(String searchDepId) {
		this.searchDepId = searchDepId;
	}

	public String getSearchClassType() {
		return searchClassType;
	}

	public void setSearchClassType(String searchClassType) {
		this.searchClassType = searchClassType;
	}

	public String getSearchYear() {
		return searchYear;
	}

	public void setSearchYear(String searchYear) {
		this.searchYear = searchYear;
	}

	public Integer getLimitNum() {
		return classDept.getLimitNum();
	}

	public void setLimitNum(Integer limitNum) {
		classDept.setLimitNum(limitNum);
	}
	
}
